import java.util.concurrent.TimeUnit;

public class ADeamon implements Runnable {
	@Override
	public void run() {

		try {
			System.out.println("ADeamon start");
			TimeUnit.SECONDS.sleep(1);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}finally{
			System.out.println("finally");
		}
	}
	
	public static void main(String[] args) {
		Thread t = new Thread(new ADeamon());
		t.setDaemon(true);
		t.start();
	}
}
